<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>门诊候诊队列</title>
</head>
<body>
	<div class="easyui-tabs" border="false" style="width:100%;">
		<div title="内科">
			<!-- <table id="hosp_patient" class="easyui-treegrid"  style="width:24%;height: 500px" data-options=
			"title:'呼吸内科'" idField="doctor_name" treeField="name" url="get_queue_detail">   
			    <thead>   
			        <tr>
			            <th field="name" width="50%" >病人姓名</th>   
			            <th field="sequence" width="50%">顺序</th>
			        </tr>   
			    </thead>   
			</table> --> 
			<table id="test" title="Folder Browser" class="easyui-treegrid" style="width:400px;height:300px"
				url="get_queue_detail"
				rownumbers="true"
				idField="id" treeField="patient_name">
		<thead>
			<tr>
				<th field="patient_name" width="160">Name</th>
				<th field="size" width="60" align="right">Size</th>
				<th field="date" width="100">Modified Date</th>
			</tr>
		</thead>
	</table>
			
		</div>
		<div title="外科">
			<table id="hosp_" class="easyui-datagrid"  data-options=
			"title:'所有数据',toolbar:'#search_bar',pagination:true,singleSelect:true">   
			    <thead>   
			        <tr>   
			            <th data-options="field:'ID',hidden:true">挂号ID</th>   
			            <th data-options="field:'name',width:'10%',halign:'center',resizable:true">医生工号</th>   
			            <th data-options="field:'sex',width:'5%',halign:'center',resizable:true">诊疗卡号</th> 
			            <th data-options="field:'age',width:'5%',halign:'center',resizable:true">挂号时间</th>   
			            <th data-options="field:'address',width:'20%',halign:'center',resizable:true">看病时间</th>   
			            <th data-options="field:'time',width:'20%',halign:'center',resizable:true">价格</th> 
			            <th data-options="field:'code',width:'20%',halign:'center',resizable:true">是否缴费</th>   
			            <th data-options="field:'name',width:'30%',halign:'center',resizable:true">收费项目ID</th>
			        </tr>   
			    </thead>   
			    <tbody>   
			        <tr>   
			            <td>001</td><td>名称1</td><td>2323</td><td>001</td>
			            <td>名称1</td><td>2323</td><td>001</td><td>名称1</td>   
			        </tr>   
			        <tr>   
			            <td>001</td><td>名称1</td><td>2323</td><td>001</td>
			            <td>名称1</td><td>2323</td><td>001</td><td>名称1</td>    
			        </tr>   
			    </tbody>   
			</table> 
		</div>
	</div>
	
	<!-- <script type="text/javascript">
		$("#hosp_patient").treegrid({
			animate:true,//是否用动画效果
            collapsible:true,//是否可折叠
            idField:'doctor_name',//根据那个字段判断树节点关系
            treeField:'doctor_name',//根据那个列展现树
            showFooter:false,//是否使用页脚
            onBeforeExpand:function(node){  
                $('#flexlist').treegrid('options').url='get_queue_detail'

 			},
 			 onClickRow:function(node){
                 //点击行触发
             },
		})
	</script> -->
</body>
</html>